#include "ifeedreader_engine.h"

class FeedReaderEngine : IFeedReaderQueries
{
public:
	FeedReader_Engine ();
	~FeedReader_Engine ();

	virtual set<string>     GetTags ();
        virtual set<Feed>       GetFeeds ( int page , int count );
        virtual vector<News>    GetFeedByNumber ( int feedID , int start , int count );
        virtual News            GetNewsByNumber ( int newsID );
        virtual vector<News>    GetNews  ( int page , int count );

        virtual int             AddTag ( string name );
        virtual int             DelTag ( int tagID );
	
	virtual void            AddFeed ( string name , string url );
        virtual void            DelFeed ( int feedID );

	virtual void            AssignTags ( int newsID , set<int> tags );
	virtual void            RemoveTags ( int newsID , set<int> tags );
}								
